home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-12-24 | 3.6 KB | 138 lines | [TEXT/PJMM] |
- unit Globals;
-
- interface
-
- procedure Globals;
-
- const
-
- blank = ' ';
- comma = ',';
- asterisk = '*';
- crosshatch = '#';
- rightslash = '/';
- leftslash = '\';
- plus = '+';
- minus = '-';
- equals = '=';
- rightparen = ')';
- semicolon = ';';
- leftparen = '(';
- exponent = '^';
- quote = '''';
- imod = 'mod';
- idiv = 'div';
- ampersand = '@';
- pivalue = 3.141592653589793238462643;
- numconstants = 2;
- maxnumberofstrings = 200;
- maxnumberofnodes = 200;
- maxstringsize = 20;
- maxnumberfiles = 200;
- maxnumbermatrices = 200;
- maxnumberlongints = 200;
- maxelements = 2000000;
-
- type
-
- stringsize = string[maxstringsize];
- ptrstringsize = ^stringsize;
- hdlstringsize = ^ptrstringsize;
-
- string30 = string[30];
- array2 = array[1..2] of stringsize;
-
- extendedfile = file of extended;
- ptrextendedfile = ^extendedfile;
- hdlextendedfile = ^ptrextendedfile;
-
- extendedfilearrayhdls = array[1..maxnumbermatrices] of hdlextendedfile;
- ptrextendedfilearrayhdls = ^extendedfilearrayhdls;
- hdlextendedfilearrayhdls = ^ptrextendedfilearrayhdls;
-
- booleanfilearray = array[1..maxnumberfiles] of boolean;
- ptrbooleanfilearray = ^booleanfilearray;
- hdlbooleanfilearray = ^ptrbooleanfilearray;
-
- stringarray0 = array[0..maxnumberofstrings] of hdlstringsize;
- ptrstringarray0 = ^stringarray0;
- hdlstringarray0 = ^ptrstringarray0;
-
- intarray0 = array[0..maxnumberofstrings] of longint;
- ptrintarray0 = ^intarray0;
- hdlintarray0 = ^ptrintarray0;
-
- ptrextended = ^extended;
- hdlextended = ^ptrextended;
-
- extendarray = array[1..maxnumberofstrings] of hdlextended;
- ptrextendarray = ^extendarray;
- hdlextendarray = ^ptrextendarray;
-
- flagtype = array[1..maxnumberofstrings] of boolean;
- ptrflagtype = ^flagtype;
- hdlflagtype = ^ptrflagtype;
-
- token = record
- index: string30;
- end;
-
- noderecord = record
- optype: stringsize; {type of operation}
- loptype: stringsize; {left operand type}
- roptype: stringsize; {right operand type}
- op: token; {operator/function symbol}
- lop: token; {name/value of left operand}
- rop: token; {name/value of right operand}
- end;
-
- ptrnoderecord = ^noderecord;
- hdlnoderecord = ^ptrnoderecord;
-
- arrayhdlnoderecord = array[1..maxnumberofnodes] of hdlnoderecord;
- ptrarrayhdlnoderecord = ^arrayhdlnoderecord;
- hdlarrayhdlnoderecord = ^ptrarrayhdlnoderecord;
-
- singlearraymatrix = array[1..maxelements] of extended;
- ptrsinglearraymatrix = ^singlearraymatrix;
- hdlsinglearraymatrix = ^ptrsinglearraymatrix;
-
- nodematrixarray = array[1..maxnumberofnodes] of hdlsinglearraymatrix;
- ptrnodematrixarray = ^nodematrixarray;
- hdlnodematrixarray = ^ptrnodematrixarray;
-
- storematrixarray = array[1..maxnumbermatrices] of hdlsinglearraymatrix;
- ptrstorematrixarray = ^storematrixarray;
- hdlstorematrixarray = ^ptrstorematrixarray;
-
- var
-
- bignumber: longint;
-
- numvariables, numnodes, numberfiles, decplace, decplaceplus10: longint;
- strvar: hdlstringarray0; {name & type of stored variable}
-
- matfile: hdlextendedfilearrayhdls;
- textstoredinfile, mfileopen, mfilenew, matrixnew, matrixstoredinfile: hdlbooleanfilearray;
-
- varfile, numfile, nummatrix, dummyfile: text;
- matrix, dummymatrix: hdlsinglearraymatrix;
-
- nodematrix: hdlnodematrixarray;
- storematrix: hdlstorematrixarray;
- varfilename, numfilename: stringsize;
- error: str255;
- varfileopen, numfileopen, dummyopen: boolean;
- blocksize: size;
- ans: extended;
-
- implementation
-
- procedure Globals;
-
- begin
-
- end;
-
-
- end.